<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>注册页面</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="robots" content="all,follow">
    <link rel="stylesheet" th:href="@{/agent/libs/layui/css/layui.css}" media="all"/>
    <script type="text/javascript" th:src="@{/agent/libs/jquery-1.11.0.min.js}"></script>
    <script type="text/javascript" th:src="@{/agent/libs/layui/layui.all.js}"></script>
    <script type="text/javascript" th:src="@{/agent/libs/layui/layui.js}"></script>
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" th:href="@{/agent/vendor/bootstrap/css/bootstrap.min.css}">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" th:href="@{/agent/vendor/font-awesome/css/font-awesome.min.css}">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" th:href="@{/agent/css/fontastic.css}">
    <!-- Google fonts - Poppins -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
    <!-- theme stylesheet-->
    <link rel="stylesheet" th:href="@{/agent/css/style.default.css}" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" th:href="@{/agent/css/custom.css}">
    <!-- Favicon-->
    <link rel="shortcut icon" th:href="@{/agent/img/favicon.ico}">
    <script th:src="@{/agent/vendor/jquery/jquery.min.js}"></script>
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
    <title>今晚天气好</title>
</head>
<style type="text/css">
    #sr{
        margin: 0;
        padding: 0;
        position: relative;
        left: 500px;
        top: 30px;
    }
    #tj{
        margin: 0;
        padding: 0;
        position: relative;
        left: 750px;
        top: 3px;
    }
    #jj{
        margin: 0;
        padding: 0;
        position: relative;
        left: 660px;
        top: 20px;
    }
</style>
<body>
<div class="layui-header layui-bg-black">
    <div id="jj" class="layui-logo "><h3>云集家员工信息管理</h3></div>
</div>
<div class="card">
        <div class="layui-header">
            <button id="add"  class="layui-btn">增加</button>

            <a href="/run" class="layui-btn">回到首页</a>
        </div>
        </div>
        <table class="table">
            <thead>
            <tr>
                <th>#</th>
                <th>姓名</th>
                <th>法人年龄</th>
                <th>法人性别</th>
                <th>法人电话号码</th>
                <th>公司名称</th>
                <th>公司负责人</th>
                <th>公司负责人电话</th>
                <th>公司建立时间</th>
                <th>公司地址</th>
                <th>所在区域</th>
                <th>是否审核</th>
                <th>是否注销</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody class="defs">
            <tr th:if="${agentlist.size()} eq 0">
                <td colspan="3">没有用户信息！！</td>
            </tr>
            <tr  th:each="agent : ${pagehelper.getList()}">
                <td th:text="${agent.agentId}"></td>
                <td th:text="${agent.agentCorpname}"></td>
                <td th:text="${agent.agentAge}"></td>
                <td th:text="${agent.agenSex}"> </td>
                <td th:text="${agent.agentPhone}"> </td>
                <td th:text="${agent.agentCompanyname}"> </td>
                <td th:text="${agent.agentPrincipal}"></td>
                <td th:text="${agent.agentPrincipaltel}"></td>
                <td th:text="${#dates.format(agent.agentSetuptime,'yyyy-mm-dd')}"> </td>
                <td th:text="${agent.agentAddress}"> </td>
                <td th:text="${agent.agentRegion}"> </td>
                <td th:text="${agent.agentCheck}=='y'?'已审核':'未审核'"> </td>
                <!--${item.id} == ${section.id} ? 'a' : ${item.b}-->
                <td th:text="${agent.agenLogout}=='y'?'已注销':'未注销'"> </td>
                <td id="zg">
                    <a class="layui-btn layui-btn-sm" th:href="@{'/agent/modify/' + ${agent.agentId} }">编辑</a><p></p>
                    <a class="layui-btn layui-btn-sm" th:href="@{'/agent/delete/' + ${agent.agentId} }">删除</a>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="layui-table-page"><div id="layui-table-page1"><div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-2"><a th:if="${not pagehelper.isIsFirstPage()}" th:href="@{/agent/list(start=${pagehelper.getPageNum()-1})}"  class="layui-icon">[上一页]</a><a th:if="${not pagehelper.isIsLastPage()}" th:href="@{/agent/list(start=${pagehelper.getPageNum()+1})}" class="layui-icon">[下一页]</a>
            <a th:href="@{/agent/list(start=${pagehelper.getPageSize()-1})}" class="layui-laypage-last"  >[尾页]</a>
            <span class="layui-laypage-limits"></span></div></div></div>


    <script th:src="@{/agent/vendor/jquery/jquery.min.js}"></script>
    <script th:src="@{/agent/vendor/popper.js/umd/popper.min.js}"></script>
    <script th:src="@{/agent/vendor/bootstrap/js/bootstrap.min.js}"></script>
    <script th:src="@{/agent/vendor/jquery.cookie/jquery.cookie.js}"></script>
    <script th:src="@{/agent/vendor/chart.js/Chart.min.js}"></script>
    <script th:src="@{/agent/vendor/jquery-validation/jquery.validate.min.js}"></script>
    <!-- Main File-->
    <script th:src="@{/agent/js/front.js}"></script>
    <script th:src="@{/agent/libs/layui/layui.all.js}"></script>
    <script type="text/javascript">

        $("#add").click(function(){
            location.href='/agent/form';
        });


    </script>


</body>
</html>